﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ERPStudio;

namespace ERPForms
{
    public partial class CodSecretFrm : FrmCard
    {
        public CodSecretFrm()
        {
            InitializeComponent();
        }

        private void CodSecretFrm_Load(object sender, EventArgs e)
        {
            AddButton("Confirm", global::ERPStudio.Properties.Resources._001_41, Confirm, ToolStripItemAlignment.Right, false);
        }

        private void Confirm(object sender, EventArgs e)
        {
            if (CodTB.Text == "ziua" + DateTime.Now.Day.ToString() + "luna" + DateTime.Now.Month.ToString())
            {
                this.DialogResult = System.Windows.Forms.DialogResult.Yes;
                this.Close();
            }
        }

    }
}
